package com.pandora.credit.mongo.service;

import com.pandora.credit.mongo.entity.MongoMessage;

import java.util.List;

/**
 * @author developer
 */
public interface MongoMessageService {

    /**
     * queryByIsSent
     * @param isSent isSent
     * @return MongoMessageList
     */
    List<MongoMessage> queryByIsSent(int isSent);

    /**
     * save
     * @param message message
     */
    void save(MongoMessage message);

    /**
     * getFromId
     * @param id id
     * @return MongoMessage
     */
    MongoMessage getFromId(long id);

}
